package com.tvsinfo.jdk.demo.case4_stream;

import com.tvsinfo.jdk.demo.case2_function_interface.dto.Car;

import java.util.Arrays;
import java.util.List;

public interface Stream_Create_List {


    default List<Car> getList() {
        Car a0 = new Car(1,"奔驰A级", 45, "白色", 4700, Arrays.asList("宝山分店1", "浦东店"));
        Car a1 = new Car(2,"奔驰E级", 55, "白色", 4900, Arrays.asList("宝山分店1", "宝山分店2", "浦东店"));
        Car a2 = new Car(3,"奔驰C级", 30, "黑色", 4900, Arrays.asList("宝山分店1", "宝山分店2", "静安店", "静安分店2", "浦东店"));
        Car a3 = new Car(4,"保时捷718", 60, "黄色", 4379, Arrays.asList("宝山分店1", "宝山分店2", "静安店", "静安分店2", "浦东店"));
        Car a4 = new Car(5,"保时捷911", 400, "绿色", 4500, Arrays.asList("宝山分店1", "宝山分店2", "静安店", "静安分店2", "浦东店"));
        Car a5 = new Car(6,"宝马 X1", 30, "蓝色", 4565, Arrays.asList("宝山分店1", "浦东店", "静安店", "徐汇区旗舰店", "东方明珠店"));
        Car a6 = new Car(7,"宝马 X3", 50, "白色", 4717, Arrays.asList("宝山分店1", "浦东店", "静安店", "徐汇区旗舰店", "东方明珠店"));
        java.util.List<Car> cars = Arrays.asList(a0, a1, a2, a3, a4, a5, a6);
        return cars;
    }

}
